package com.example.demo.imagemanage.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component(value ="imageMapper")
public interface ImageMapper {

    List<Map<String,Object>> changeFactory(Map<String, Object> param);

    List<Map<String,Object>> changeProduct(Map<String, Object> param);

    int uploadImage(Map<String, Object> param);

    List<Map<String,Object>> queryImagesByFIDAndPID(Map<String, Object> param);

    List<Map<String,Object>> queryAllStyle(Map<String, Object> param);

    List<Map<String,Object>> queryAllType(Map<String, Object> param);

    List<Map<String,Object>> queryAllImageByStyleAndType(Map<String, Object> param);

    int delectImageByID(Map<String, Object> param);
}
